package com.shop.dao;

import java.util.Set;

import com.shop.entity.Address;
import com.shop.entity.CarGoodsList;
import com.shop.entity.Collection;
import com.shop.entity.Footprint;
import com.shop.entity.Member;
import com.shop.entity.MemberInfor;
import com.shop.entity.Order;

public interface MemberDao extends BaseDao<Member> {
	public Object[] findByUsername (String username, String password) ;
	
	/**
	 * 查找会员的关联订单
	 */
	public Set<Order> findOrder(Member menber) ;
	/**
	 * 查找会员的关联足迹
	 */
	public Set<Footprint> findFoot(Member menber) ;
	/**
	 * 查找会员的关联收藏
	 */
	public Set<Collection> findColle(Member menber) ;
	/**
	 * 查找会员的关联购物车清单
	 */
	public Set<CarGoodsList> findCarGoods(Member menber) ;
	/**
	 * 查找会员的关联地址信息
	 */
	public Set<Address> findAddress(Member menber) ;
	/**
	 * 查找会员的个人信息
	 */
	public MemberInfor findMemberInfor(Member menber) ;
	
	/*
	 * 插入关联的订单
	 */
	public boolean saveOrder(Member menber, Order order) ;
	/*
	 * 插入关联的收藏
	 */
	public boolean saveColle(Member menber, Collection colle) ;
	/*
	 * 插入关联的足迹
	 */
	public boolean saveFoot(Member menber, Footprint foot) ;
	/*
	 * 插入关联的购物车清单
	 */
	public boolean saveCarGoodsList(Member menber, CarGoodsList gl) ;
	/*
	 * 插入关联的地址信息
	 */
	public boolean saveAddress(Member menber, Address adds) ;
	/*
	 * 插入关联的个人信息
	 */
	public boolean saveInfor(Member menber, MemberInfor minfor) ;
}
